#include "loaded.h"
#include "ui_loaded.h"

loaded::loaded(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::loaded)
{
    ui->setupUi(this);
    this->setWindowTitle("welcome come back home!");
   home =new smarthome(ui->widget);
   yinyue=new music(ui->widget);
   tianqi =new weather(ui->widget);
   home->hide();
   yinyue->hide();
   tianqi->hide();
}

loaded::~loaded()
{
    delete ui;
}

void loaded::on_pushButton_3_clicked()
{
   tianqi->show();
   home->hide();
   yinyue->hide();
}

void loaded::on_pushButton_clicked()
{
    home->show();
    yinyue->hide();
    tianqi->hide();
}

void loaded::on_pushButton_2_clicked()
{
   yinyue->show();
   tianqi->hide();
   home->hide();
}
